package xyz.ranyh.jobclient.util;

import java.util.Date;
import java.util.List;

/**
 * Created by rany on 12/23/16.
 */

public class User {
    private String email;
    private String password;
    private String nickname;
    private String createDate;
    private String role;
    private List<Integer> star;
    private List<Integer> alarm;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String create_date) {
        this.createDate = create_date;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public boolean isEmpty() {
        return email == null || email.isEmpty();
    }

    public List<Integer> getStar() {
        return star;
    }

    public void setStar(List<Integer> star) {
        this.star = star;
    }

    public List<Integer> getAlarm() {
        return alarm;
    }

    public void setAlarm(List<Integer> alarm) {
        this.alarm = alarm;
    }

//    @Override
//    public String toString() {
//        return "User: {email:"+ email + ", password: "+ password + "}";
//    }
}
